package com.ossjk.qlh.system.service;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ossjk.qlh.system.entity.Permission;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author chair
 * @since 2020-03-21
 */
public interface IPermissionService extends IService<Permission> {

	/**
	 * 根据id删除子节点
	 * 
	 * @param id
	 * @return
	 */
	boolean removeChildrenById(Serializable id);

	/**
	 * 根据用户id获取权限用户
	 * 
	 * @param uid
	 * @return
	 */
	List<Permission> listUserPermissionByUid(String uid);

	/**
	 * 根据用户id获取权限码
	 * @param id
	 * @return
	 */
	List<String>  listUserPermissionCodeByUid(String uid);

}
